<#assign title="资产/策略编辑页面">
<#include "/admin/inc/top.html"/>
<div class="main-content" id="main-content">
    <header class="header navbar bg-white shadow">
        <div class="btn-group tool-button">
            <a class="btn btn-primary navbar-btn" href="${base!}/private/fof/assetStrategyInfo" data-pjax><i
                    class="fa fa-reply"></i> 返回</a>
        </div>
    </header>
    <section class="content">
        <div class="form-wrapper" style="min-height:500px;">
            <section class="panel panel-form">
                <form id="unitAddForm" role="form" class="form-horizontal parsley-form" data-parsley-validate
                      action="${base!}/private/fof/assetStrategyInfo/editDo" method="post">
                    <input type="hidden" name="id" value="${assetStrategyInfo.id}">
                    <div class="row mb10">
                        <div class="col-lg-12">
                            <div class="form-group">
                                <label for="name" class="col-sm-2 control-label">资产/策略名</label>

                                <div class="col-sm-8">
                                    <input type="text" id="name" class="form-control" name="name"
                                    data-parsley-required="true" placeholder="资产/策略名" value="${assetStrategyInfo.name}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="type" class="col-sm-2 control-label">类型</label>

                                <div class="col-sm-8">
                                    <div class="col-sm-8">
                                        <select id="type" class="form-control" name="type"
                                                data-parsley-required="true"  placeholder="类型">
                                            <option value="1" <#if assetStrategyInfo.type=1>selected</#if> >资产</option>
                                            <option value="2" <#if assetStrategyInfo.type=2>selected</#if> >策略</option>
                                        </select>
                                    </div>

                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="benchmarkId" class="col-sm-2 control-label">benchmarkId</label>

                                <div class="col-sm-8">
                                    <select id="benchmarkId" class="form-control" name="benchmarkId">
                                        <#list benchmarkList as benchmark>
                                            <option value="${benchmark.id}" <#if assetStrategyInfo.benchmarkId = benchmark.id>selected</#if> >${benchmark.name}</option>
                                        </#list>
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="windInvestType" class="col-sm-2 control-label">万德InvestType筛选词</label>

                                <div class="col-sm-8">
                                    <input type="text" id="windInvestType" class="form-control" name="windInvestType"
                                           placeholder="万德InvestType筛选词" value="${assetStrategyInfo.windInvestType}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="windInvestStyle" class="col-sm-2 control-label">万德InvestStyle筛选词</label>

                                <div class="col-sm-8">
                                    <input type="text" id="windInvestStyle" class="form-control" name="windInvestStyle"
                                           placeholder="万德InvestStyle筛选词" value="${assetStrategyInfo.windInvestStyle}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="goFundTypeTarget" class="col-sm-2 control-label">朝阳永续TypeTarget筛选词</label>

                                <div class="col-sm-8">
                                    <input type="text" id="goFundTypeTarget" class="form-control" name="goFundTypeTarget"
                                           placeholder="朝阳永续TypeTarget筛选词" value="${assetStrategyInfo.goFundTypeTarget}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="goFundTypeStrategy" class="col-sm-2 control-label">朝阳永续TypeStrategy筛选词</label>

                                <div class="col-sm-8">
                                    <input type="text" id="goFundTypeStrategy" class="form-control" name="goFundTypeStrategy"
                                           placeholder="朝阳永续TypeStrategy筛选词" value="${assetStrategyInfo.goFundTypeStrategy}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="goFundTypeQuant" class="col-sm-2 control-label">朝阳永续FundTypeQuant筛选词</label>

                                <div class="col-sm-8">
                                    <input type="text" id="goFundTypeQuant" class="form-control" name="goFundTypeQuant"
                                           placeholder="朝阳永续FundTypeQuant筛选词" value="${assetStrategyInfo.goFundTypeQuant}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="goFundTypeHedging" class="col-sm-2 control-label">朝阳永续FundTypeHedging筛选词</label>

                                <div class="col-sm-8">
                                    <input type="text" id="goFundTypeHedging" class="form-control" name="goFundTypeHedging"
                                           placeholder="朝阳永续FundTypeHedging筛选词" value="${assetStrategyInfo.goFundTypeHedging}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="description" class="col-sm-2 control-label">描述信息</label>

                                <div class="col-sm-8">
                                    <textarea type="text" id="description" class="form-control" name="description"
                                     placeholder="描述信息">${assetStrategyInfo.description}</textarea>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                    </div>
                    <div class="col-lg-3"></div>
                    <div class="col-lg-6">
                        <div class="form-group text-center">
                            <label></label>

                            <div>
                                <button class="btn btn-primary btn-block btn-lg btn-parsley"
                                        data-loading-text="正在提交...">提 交
                                </button>
                            </div>
                        </div>
                    </div>
                </form>
            </section>

        </div>
        <a class="exit-offscreen"></a>
    </section>
</div>
<script language="JavaScript">

    $(document).ready(function () {
        //initTreeView();
        $('#unitAddForm').ajaxForm({
            dataType: 'json',
            beforeSubmit: function (arr, form, options) {
                form.find("button:submit").button("loading");
            },
            success: function (data, statusText, xhr, form) {
                if (data.code == 200) {
                    Toast.success(data.msg);
                } else {
                    Toast.error(data.msg);
                }
                form.find("button:submit").button("reset");
            }
        });
    });
</script>
<#include "/admin/inc/bottom.html"/>